/**
 * @author harry
 * @date 2022/3/13/18:19
 */

package com.serviceOrchestration.dao;

import com.serviceOrchestration.pojo.PurchaseRecord;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface PurchaseDao {
    Integer insert(String userId, String productId, int amount, Date date);

    Integer selectAmountDaily(String userId, String productId);

    Integer selectAmountSum(String userId, String productId);

    List<PurchaseRecord> selectRecordByUserId(String userId);
}
